package org.example.cloud.api;

import org.example.cloud.util.ResultData;
import org.example.cloud.util.ReturnCodeEnum;
import org.springframework.stereotype.Component;

/**
 * @author 宋孟林
 * @description
 * @date: 2025/4/11 16:16
 */
@Component
public class PayFeignSentinelFallBackApi implements PayFeignSentinelApi{
    @Override
    public ResultData<?> getPayByOrderNo(String orderNo) {
        return ResultData.fail(ReturnCodeEnum.RC500.getCode(), "对方服务宕机，发生服务降级");
    }
}
